package com.xingxue.shopping.model.persist;

public class Goods {

	
	 private Integer goodsid;
	 private String gname;
	 private Integer gtypeid;
	 private String gdesc;
	 private String gimage;
	 private String gprice;
	 private Integer gcount;
	 private String gsize;
	public Integer getGoodsid() {
		return goodsid;
	}
	public void setGoodsid(Integer goodsid) {
		this.goodsid = goodsid;
	}
	public String getGname() {
		return gname;
	}
	public void setGname(String gname) {
		this.gname = gname;
	}
	public Integer getGtypeid() {
		return gtypeid;
	}
	public void setGtypeid(Integer gtypeid) {
		this.gtypeid = gtypeid;
	}
	public String getGdesc() {
		return gdesc;
	}
	public void setGdesc(String gdesc) {
		this.gdesc = gdesc;
	}
	public String getGimage() {
		return gimage;
	}
	public void setGimage(String gimage) {
		this.gimage = gimage;
	}
	public String getGprice() {
		return gprice;
	}
	public void setGprice(String gprice) {
		this.gprice = gprice;
	}
	public Integer getGcount() {
		return gcount;
	}
	public void setGcount(Integer gcount) {
		this.gcount = gcount;
	}
	public String getGsize() {
		return gsize;
	}
	public void setGsize(String gsize) {
		this.gsize = gsize;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((gcount == null) ? 0 : gcount.hashCode());
		result = prime * result + ((gdesc == null) ? 0 : gdesc.hashCode());
		result = prime * result + ((gimage == null) ? 0 : gimage.hashCode());
		result = prime * result + ((gname == null) ? 0 : gname.hashCode());
		result = prime * result + ((goodsid == null) ? 0 : goodsid.hashCode());
		result = prime * result + ((gprice == null) ? 0 : gprice.hashCode());
		result = prime * result + ((gsize == null) ? 0 : gsize.hashCode());
		result = prime * result + ((gtypeid == null) ? 0 : gtypeid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Goods other = (Goods) obj;
		if (gcount == null) {
			if (other.gcount != null)
				return false;
		} else if (!gcount.equals(other.gcount))
			return false;
		if (gdesc == null) {
			if (other.gdesc != null)
				return false;
		} else if (!gdesc.equals(other.gdesc))
			return false;
		if (gimage == null) {
			if (other.gimage != null)
				return false;
		} else if (!gimage.equals(other.gimage))
			return false;
		if (gname == null) {
			if (other.gname != null)
				return false;
		} else if (!gname.equals(other.gname))
			return false;
		if (goodsid == null) {
			if (other.goodsid != null)
				return false;
		} else if (!goodsid.equals(other.goodsid))
			return false;
		if (gprice == null) {
			if (other.gprice != null)
				return false;
		} else if (!gprice.equals(other.gprice))
			return false;
		if (gsize == null) {
			if (other.gsize != null)
				return false;
		} else if (!gsize.equals(other.gsize))
			return false;
		if (gtypeid == null) {
			if (other.gtypeid != null)
				return false;
		} else if (!gtypeid.equals(other.gtypeid))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "goods [goodsid=" + goodsid + ", gname=" + gname + ", gtypeid=" + gtypeid + ", gdesc=" + gdesc
				+ ", gimage=" + gimage + ", gprice=" + gprice + ", gcount=" + gcount + ", gsize=" + gsize + "]";
	}
	 
	 
}
